﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2_NovaAdmin.Application.Services.Role.Dto
{
    [SugarTable("Role")]
    public class DtoRoleResponse
    {
        public Guid Id { get; set; }

        [SugarColumn(ColumnName = "RoleName")]
        public string RoleName { get; set; }

        [SugarColumn(ColumnName = "DeptId")]
        public string DeptId { get; set; }

        [SugarColumn(ColumnName = "StatusId")]
        public string StatusId { get; set; }



        [ForeignData(typeof(Dept), nameof(Dept.Id), nameof(Dept.DeptName), nameof(DeptId))]
        [SugarColumn(IsIgnore = true)]
        public string deptName { get; set; }

        [ForeignData(typeof(Dic), nameof(Dept.Id), nameof(Dic.DicValue), nameof(StatusId))]
        [SugarColumn(IsIgnore = true)]
        public string StatusName { get; set; }
    }
}
